package cn.edu.zjgsu.ito.controller;

import cn.edu.zjgsu.ito.interceptor.AdminControllerInterceptor;

import com.jfinal.aop.Before;
import com.jfinal.core.Controller;

@Before(AdminControllerInterceptor.class)
public class AdminController extends Controller {
	/*
	 * 张虎涛
	 * 2016/06/01
	 */
	//管理员注销事件
	public void exit()
	{
		try{
			getSession().invalidate();
			setSessionAttr("flag","0");
			redirect("/");
			return;
		}catch(Exception e){
			e.printStackTrace();
		}
		
	}

}
